#ifndef __VIRTUALUAV_FIXEDWING_H__
#define __VIRTUALUAV_FIXEDWING_H__

#include "JSBSim.h"
#include "VirtualUAV.h"


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

class VirtualUAV_Fixedwing : public VirtualUAV
{
public:
    VirtualUAV_Fixedwing();
    virtual ~VirtualUAV_Fixedwing();

    int init();
    int release();

    virtual int timerFunction(void *arg);
    virtual int simulation(pi::JS_Val *jsv);
    virtual int toFlightGear(FGNetFDM *fgData);

    virtual int autoNavigate(float *js);

protected:
    std::string     m_modelName;

    int             m_numMotor;

    int             m_startPOS_set;
    double          m_startPOS_lat;
    double          m_startPOS_lng;
    double          m_startPOS_alt;

    int             m_engineStart;
    int             m_engineStartTM;

    pi::JSBSim      m_jsbSim;

    double          m_tmLastAltSet;
};


#endif // end of  __VIRTUALUAV_FIXEDWING_H__

